//饮食分类列表
export const ycDietCategory = (data) =>
  uni.http({
    url: 'yc/Diet/category',
    method: 'get',
    data,
    requestType: 'bl',
  })
//运动分类列表
export const ycSportCategory = (data) =>
  uni.http({
    url: 'yc/MotionRecord/category',
    method: 'get',
    data,
    requestType: 'bl',
  })
//饮食记录日期
export const ycDietDateList = (data) =>
  uni.http({
    url: 'yc/Diet/dateList',
    method: 'get',
    data,
    requestType: 'bl',
  })
//运动记录日期
export const ycSportDateList = (data) =>
  uni.http({
    url: 'yc/MotionRecord/dateList',
    method: 'get',
    data,
    requestType: 'bl',
  })
//饮食关键词搜索
export const ycDietSearchDietList = (data) =>
  uni.http({
    url: 'yc/Diet/searchDietList',
    method: 'get',
    data,
    requestType: 'bl',
  })
//运动关键词搜索
export const ycDietSearchSportList = (data) =>
  uni.http({
    url: 'yc/MotionRecord/searchMotionList',
    method: 'get',
    data,
    requestType: 'bl',
  })
//添加饮食记录
export const ycDietAddDiet = (data) =>
  uni.http({
    url: 'yc/Diet/addDiet',
    method: 'post',
    data,
    requestType: 'bl',
  })
//添加运动记录
export const ycSportAddDiet = (data) =>
  uni.http({
    url: 'yc/MotionRecord/addMotion',
    method: 'post',
    data,
    requestType: 'bl',
  })
//编辑饮食记录
export const ycDietEditDiet = (data) =>
  uni.http({
    url: 'yc/Diet/editDiet',
    method: 'post',
    data,
    requestType: 'bl',
  })
//编辑运动记录
export const ycSportEditDiet = (data) =>
  uni.http({
    url: 'yc/MotionRecord/editRecord',
    method: 'post',
    data,
    requestType: 'bl',
  })
//获取某一天的饮食记录
export const ycDietDailyDiet = (data) =>
  uni.http({
    url: 'yc/Diet/dailyDiet',
    method: 'get',
    data,
    requestType: 'bl',
  })
//获取某一天的运动记录
export const ycDietDailySport = (data) =>
  uni.http({
    url: 'yc/MotionRecord/dailyMotion',
    method: 'get',
    data,
    requestType: 'bl',
  })
//删除饮食记录
export const ycDietDelRecord = (data) =>
  uni.http({
    url: 'yc/Diet/delRecord',
    method: 'get',
    data,
    requestType: 'bl',
  })
  
//删除运动记录
export const ycSportDelRecord = (data) =>
  uni.http({
    url: 'yc/MotionRecord/delRecord',
    method: 'get',
    data,
    requestType: 'bl',
  })
//添加自定义饮食
export const ycDietCustomProject = (data) =>
  uni.http({
    url: 'yc/Diet/customProject',
    method: 'post',
    data,
    requestType: 'bl',
  })
//添加自定义运动
export const ycSportCustomProject = (data) =>
  uni.http({
    url: 'yc/MotionRecord/customProject',
    method: 'post',
    data,
    requestType: 'bl',
  })
//删除自定义饮食
export const ycDietDelCustomProject = (data) =>
  uni.http({
    url: 'yc/Diet/delCustomProject',
    method: 'get',
    data,
    requestType: 'bl',
  })
//删除自定义运动
export const ycSportDelCustomProject = (data) =>
  uni.http({
    url: 'yc/MotionRecord/delCustomProject',
    method: 'get',
    data,
    requestType: 'bl',
  })
//搜索饮食历史记录
export const ycDietSearchList = (data) =>
  uni.http({
    url: 'yc/Diet/searchList',
    method: 'get',
    data,
    requestType: 'bl',
  })
//搜索动作历史记录
export const ycSportDietSearchList = (data) =>
  uni.http({
    url: '/yc/MotionRecord/searchList',
    method: 'get',
    data,
    requestType: 'bl',
  })
//操作饮食历史记录
export const ycDietHandleSearchWords = (data) =>
  uni.http({
    url: 'yc/Diet/handleSearchWords',
    method: 'get',
    data,
    requestType: 'bl',
  })
//操作运动历史记录
export const ycSportHandleSearchWords = (data) =>
  uni.http({
    url: 'yc/MotionRecord/handleSearchWords',
    method: 'get',
    data,
    requestType: 'bl',
  })
//用户提醒记录
export const ycDietMessageList = (data) =>
  uni.http({
    url: 'yc/Diet/messageList',
    method: 'get',
    data,
    requestType: 'bl',
  })
//关闭开启饮食运动提醒
export const ycDietOpenPushMessage = (data) =>
  uni.http({
    url: 'yc/Diet/openPushMessage',
    method: 'get',
    data,
    requestType: 'bl',
  })
//饮食记录运动开始记录时间
export const ycDietRecordStartDate = (data) =>
  uni.http({
    url: 'yc/Diet/getUserRecordStartDate',
    method: 'get',
    data,
    requestType: 'bl',
  })
//删除全部搜索记录
export const ycDelAllHistory = (data) =>
  uni.http({
    url: 'yc/Diet/delAll',
    method: 'get',
    data,
    requestType: 'bl',
  })